<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/28
 * Time: 18:19
 */

namespace Admin\Model;
use Think\Model;

class MemberInfoModel extends Model
{
    public function addMember($post){
//        if($this->ceater()){

            $data = $this ->add($post);
//        }
        return $data;
    }
    public function getMunicipal_id($id){
        $data = $this ->field('municipal_id') ->where(array('id' =>$id))->find();
        return $data['municipal_id'];
    }
    public function ajaxInfo($id){
        $data =  $this ->where(array('municipal_id' =>$id))->find();
        return $data;
    }
}